package controle.aplicativo.apresentacao.controle;

import java.io.Serializable;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import controle.aplicativo.util.BeanAbstrato;

@Controller
@Scope("session")
public class ManterSiteBean extends BeanAbstrato implements Serializable {

	private static final long serialVersionUID = 69293163623705850L;
	
	protected static final String URL_EVENTO = "evento.consulta";
	protected static final String URL_HOME = "site.inicial";
	protected static final String URL_PORTIFOLIO = "site.portifolio";
	protected static final String URL_CADASTRO = "site.cadastro";
	protected static final String URL_PARCEIRO = "site.parceiros";
	
	@Resource(name = "manterEventoBean")
	private transient ManterEventoBean manterEventoBean;
	
	public String abrirEvento(){
		this.manterEventoBean.abrirEvento();
		return ManterSiteBean.URL_EVENTO;
	}
	
	public String abrirHome(){
		return ManterSiteBean.URL_HOME;
	}
	
	public String abrirPortifolio(){
		return ManterSiteBean.URL_PORTIFOLIO;
	}
	
	public String abrirCadastro(){
		return ManterSiteBean.URL_CADASTRO;
	}
	
	public String abrirParceiro(){
		return ManterSiteBean.URL_PARCEIRO;
	}
}